package com.cicadamob.contact.api.group.bean;

import java.io.Serializable;
/**
 * 群组dto
 * @author mengxs
 *
 */
public class Group implements Serializable{
	private static final long serialVersionUID = 1L;
	
    private  String group_id;//群名称信息-主键
    private  String group_name;//名称群
    private  String create_user; //创建者账号
    private  String create_date; //
    private  String group_status; //'群状态1：可用。2：冻结'
    private  String group_remark; //备注信息
    private  String username; //创建者名称'
    private  String spname; //群名称首拼音
    private  String qpname;//群名称全拼
    private  String fname_fpy_num;//群名称拼音的前12个字母的Long排序值'
    private  String lastUpdateTime;//最后更新时间
    private  int isNew=0;//0是没更新，1是有更新
    private int memberCount;
    private String assetId;//资产id
    private String operatorTime;
    
    public String getAssetId() {
		return assetId;
	}
	public void setAssetId(String assetId) {
		this.assetId = assetId;
	}
	private boolean isChecked;
    public boolean isChecked() {
		return isChecked;
	}
	public void setChecked(boolean isChecked) {
		this.isChecked = isChecked;
	}
	private boolean isCreatedByMyself=false;
    
    private String imagePath;//群组图标地址
	public String getImagePath() {
		return imagePath;
	}
	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}
    
	public boolean isCreatedByMyself() {
		return isCreatedByMyself;
	}
	public void setCreatedByMyself(boolean isCreatedByMyself) {
		this.isCreatedByMyself = isCreatedByMyself;
	}
	public int getIsNew() {
		return isNew;
	}
	public void setIsNew(int isNew) {
		this.isNew = isNew;
	}
	public String getLastUpdateTime() {
		return lastUpdateTime;
	}
	public void setLastUpdateTime(String lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}
	public String getGroup_id() {
		return group_id;
	}
	public void setGroup_id(String group_id) {
		this.group_id = group_id;
	}
	public String getGroup_name() {
		return group_name;
	}
	public void setGroup_name(String group_name) {
		this.group_name = group_name;
	}
	public String getCreate_user() {
		return create_user;
	}
	public void setCreate_user(String create_user) {
		this.create_user = create_user;
	}
	public String getCreate_date() {
		return create_date;
	}
	public void setCreate_date(String create_date) {
		this.create_date = create_date;
	}
	public String getGroup_status() {
		return group_status;
	}
	public void setGroup_status(String group_status) {
		this.group_status = group_status;
	}
	public String getGroup_remark() {
		return group_remark;
	}
	public void setGroup_remark(String group_remark) {
		this.group_remark = group_remark;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getSpname() {
		return spname;
	}
	public void setSpname(String spname) {
		this.spname = spname;
	}
	public String getQpname() {
		return qpname;
	}
	public void setQpname(String qpname) {
		this.qpname = qpname;
	}
	public String getFname_fpy_num() {
		return fname_fpy_num;
	}
	public void setFname_fpy_num(String fname_fpy_num) {
		this.fname_fpy_num = fname_fpy_num;
	}
	
	public int getMemberCount() {
		return memberCount;
	}
	public void setMemberCount(int memberCount) {
		this.memberCount = memberCount;
	}
	
	
	
	public String getOperatorTime() {
		return operatorTime;
	}
	public void setOperatorTime(String operatorTime) {
		this.operatorTime = operatorTime;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((group_id == null) ? 0 : group_id.hashCode());
		result = prime * result
				+ ((group_name == null) ? 0 : group_name.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Group other = (Group) obj;
		if (group_id == null) {
			if (other.group_id != null)
				return false;
		} else if (!group_id.equals(other.group_id))
			return false;
		if (group_name == null) {
			if (other.group_name != null)
				return false;
		} else if (!group_name.equals(other.group_name))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Group [group_id=" + group_id + ", group_name=" + group_name
				+ "]";
	}
 
	
}
